﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DataAccessLayer;
using System.Data;

namespace BusinessLogicLayer
{
    public class BaoCaoTonBO
    {
        private BaoCaoTonDAL dal;
        public BaoCaoTonBO()
        {
            try
            {
                dal = new BaoCaoTonDAL();
            }
            catch (Exception e)
            {
                throw new BusinessLogicException();
            }
        }
        public int InsertBaoCaoTon(BaoCaoTon bct)
        {
            int kq = 0;
            try
            {
                kq = dal.InsertBaoCaoTon(bct);
            }
            catch (Exception)
            {
                return kq;
                throw;
            }
            return kq;
        }
        public DataTable layDanhSachBaoCaoTon()
        {
            DataTable s = null;
            try
            {
                s = dal.layDanhSachBaoCaoTon();
            }
            catch (Exception)
            {
                throw;
            }
            return s;
        }
    }
}
